package me.keiwu.user.dao;

import me.keiwu.user.domain.Medal;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by kei on 30/01/2018.
 */
public interface MedalDao extends JpaRepository<Medal, Integer>, JpaSpecificationExecutor<Medal> {


    @Query(value = "select * from medal where id in (?1)", nativeQuery = true)
    List<Medal> findByMedalIds(List<Integer> medalIds);



}
